package today.rocky.pattern.factory.factorymethod;

import today.rocky.pattern.factory.common.Water;

/**
 * @version 1.0
 * @vlog:
 * @description:
 * @author: Rocky
 * @createDate: 2020/7/27 23:47
 */
public class MethodFactoryTest {
	public static void main(String[] args) {
		WaterMethodFactory factory = new NongfuWaterMethodFactory();
		Water water = factory.produce();
		water.drink();
	}
}
